<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--view 层-->
<div id="app2">
    <h2>{{message}}</h2>
    <ul>
        <!--        v-for是一个指令,后边是语法糖-->
        <li v-for="item in movies">{{item}}</li>
    </ul>
</div>
<!--model 层-->
<script src="../../js/vue.js"></script>
<script>
    const app = new Vue({
        el: '#app2',
        data: {
            message: '电影列表',
            movies: ['海王', '中国机长', '星际穿越', '大话西游', '盗梦空间']
        }
    })
</script>
</body>
</html>